package csv

import utils "gosum/server/src/utitls"

type ConfigCookBook struct {
	CookBookId int `json:"CookBookId"`
	Reward     int `json:"Reward"`
}

var (
	ConfigCookBookMap map[int]*ConfigCookBook
)

func init() {
	ConfigCookBookMap = make(map[int]*ConfigCookBook)
	utils.GetCsvUtilMgr().LoadCsv("CookBook", &ConfigCookBookMap)
	return
}

func GetCookBookConfig(CookBookId int) *ConfigCookBook {
	return ConfigCookBookMap[CookBookId]
}
